using System.Collections.Generic;
using System.Linq;
using MbUnit.Framework;

namespace Blog.Testing
{
  public static class AssertionExtensions
  {
    public static void ShouldContain<T>(this IEnumerable<T> itemsToInspect, T itemToFind)
    {
      Assert.IsTrue(itemsToInspect.Contains(itemToFind));
    }

    public static void ShouldNotContain<T>(this IEnumerable<T> itemsToInspect, T itemToFind)
    {
      Assert.IsFalse(itemsToInspect.Contains(itemToFind));
    }

  }
}